package lzy.service;

import lzy.entity.GinsengTraceability;

import java.util.List;

public interface GinsengTraceabilityService {
    // 根据溯源码查询
    GinsengTraceability findByTraceCode(String traceCode);
    
    // 根据批次号查询
    List<GinsengTraceability> findByBatchNo(String batchNo);
    
    // 查询所有溯源记录
    List<GinsengTraceability> findAll();
    
    // 添加新的溯源记录
    void addTraceability(GinsengTraceability record);
    
    // 更新溯源记录
    void updateTraceability(GinsengTraceability record);
    
    // 删除溯源记录
    void deleteTraceability(String traceCode);
}